﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IUploading
{
    public interface IUpload
    {
        /// <summary>
        /// 接口名称
        /// </summary>
        string InterfaceName { get; }

        /// <summary>
        /// 接口管理识别ID
        /// </summary>
        int ID { get; set; }

        /// <summary>
        /// 接口是否已经完成初始化
        /// </summary>
        bool Inited { get; }

        /// <summary>
        /// 接口是否已经关闭
        /// </summary>
        bool Closed { get; }

        /// <summary>
        /// 接口执行动作超时时间
        /// </summary>
        int TimeoutMillisecond { get; set; }

        /// <summary>
        /// 最新的错误信息
        /// </summary>
        string ErrorMessage { get; }

        bool Test(string param, out string outParam);

        bool Login(string inParam, out string outParam);

        void Logout();

        bool Query(string param, out string outParam);

        bool Post(string param, out string outParam);

        void ShowConfigDialog(string inParam);
    }
}
